﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace XML
{
    public class RoleSet
    {
        public PersonalRoles Personal;
        public BusinessRoles Business;
    }

    public class PersonalRoles {

        [XmlElement("Role")]
        public List<Role> roleColl;
    }

    public class BusinessRoles {
        [XmlElement("Role")]
        public List<Role> roleColl;
    }

    public class Role
    {
        [XmlAttribute("type")]
        public string RoleName { get; set; }
        public string CtryFrmatVID { get; set; }
        public string LinkedRole { get; set; }
        public string MinNumbers { get; set; }
        public string MaxNumbers { get; set; }
        public string CustValidation { get; set; }
    }
}
